package com.xxx.blog.mapper;

import com.xxx.blog.domain.Article;
import com.xxx.blog.domain.GuiDang;
import com.xxx.blog.query.ArticleQuery;

import java.util.List;

public interface ArticleMapper {

    List<Article> findAll();

    Article findOne(long id);

    List<Article> queryPage(ArticleQuery articleQuery);

    void addArticle(Article article);

    void updateArticle(Article article);

    void deleteArticle(long id);

    void batchArticle(Long[] ids);

    List<GuiDang> findArticleTimeStatistics();

    List<Article> getRelateArticles(Long id);


    List<Article> findArticleByYearMonth(String yearMonth);
}
